﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)


project("test")
SET(EXE_NAME "test_astar")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BIN_PATH})


set(NET_REAL_SRC_LIST
${ANET_SRC_LIST}
#${NET_SRC_LIST}
#${SNET_SRC_LIST}
#${INET_SRC_LIST}
)

include_directories(
    "${CMAKE_CURRENT_SOURCE_DIR}/tools"
)

file(GLOB_RECURSE TEST_SRC_FILES
"./src/*"
)

source_group("tools" FILES ${TOOLS_INC_LIST})
source_group("main" FILES main.cpp)
source_group("src" FILES ${TEST_SRC_FILES})

build_project(
    NAME
        ${EXE_NAME}
    SRCS
        main.cpp
        ${TOOLS_INC_LIST}
        ${TEST_SRC_FILES}
    LINK_LIB
        ${testdeplibs}
        GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main
)

#add_executable(${EXE_NAME} main.cpp ${TOOLS_INC_LIST} ${TEST_SRC_FILES})

#target_link_libraries(${EXE_NAME} PRIVATE
#    DbgHelp
#	as_tools
#    ${testdeplibs}
#    GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main
#)

add_test(NAME testastar COMMAND ${EXE_NAME})





